process.env.NODE_ENV !== 'production' && (process.env.DEBUG = 'rlcas*');
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const config = require('./config');
app.set('port', config.port);
app.use(bodyParser.json({limit: '200kb'})); // for parsing application/json
app.use(bodyParser.urlencoded({ limit: '200kb',extended: true })); // for parsing application/x-www-form-urlencoded
// 日志文件
app.use(config.baseURL, require('./logger'));
app.listen(app.get('port'), () => console.log(`Example app listening on port ${app.get('port')}!`))